package com.story.api.common.persistence.model;

import java.io.Serializable;

import com.baomidou.mybatisplus.activerecord.Model;
import com.baomidou.mybatisplus.annotations.TableName;
import com.fasterxml.jackson.annotation.JsonInclude;

/**
 * <p>
 * 自定义歌单
 * </p>
 *
 * @author yangbo
 * @since 2017-12-14
 */
@TableName("song_list")
@JsonInclude(JsonInclude.Include.NON_NULL)
public class SongList extends Model<SongList> {

    private static final long serialVersionUID = 1L;

    /**
     * 主键id
     */
	private Integer id;
    /**
     * 歌单名称
     */
	private String name;
    /**
     * 歌单logo
     */
	private String logoPath;
    /**
     * 所属用户id
     */
	private Integer userId;


	public Integer getId() {
		return id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getLogoPath() {
		return logoPath;
	}

	public void setLogoPath(String logoPath) {
		this.logoPath = logoPath;
	}

	public Integer getUserId() {
		return userId;
	}

	public void setUserId(Integer userId) {
		this.userId = userId;
	}

	@Override
	protected Serializable pkVal() {
		return this.id;
	}

	@Override
	public String toString() {
		return "SongList{" +
			"id=" + id +
			", name=" + name +
			", logoPath=" + logoPath +
			", userId=" + userId +
			"}";
	}
}
